<template>
  <div class="gosign">
    <!-- 签署表单 -->
    <form :action="post_url" id="form" method="get">
        <input type="hidden" name="acctKey" v-model="acctkey">
        <input type="hidden" name="returnUrl" v-model="returnUrl">
    </form>
  </div>
</template>

<script>
  import config from '../../config.js'

  export default {
    data () {
      return {
        // 签署表单数据
        returnUrl: '',
        post_url: '',
        acctkey: ''
      }
    },
    created () {
      this.acctkey = this.$cookie.get('acctKey')
      this.returnUrl = config.SIGNSUCCESSRETURNURL // 签署成功后跳转的地址
      this.post_url = config.SINGNPOSTURL // 提交的地址
    },
    mounted () {
      const form = document.getElementById('form')
      form.action = this.$http.defaults.baseURL + '/api/member/account/authAcct'
      form.submit()
    }
  }
</script>

<style lang='scss'>

</style>
